package com.xbongbong.paas.pojo.dto;

import com.xbongbong.paas.constant.PaasConstant;
import com.xbongbong.paas.field.FieldAttrEntity;
import com.xbongbong.paas.toolbox.wrap.BaseDTO;
import com.xbongbong.sys.domain.entity.DepartmentEntity;
import com.xbongbong.sys.domain.entity.UserEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * @author: wufeng
 * @date: 2018/12/11 16:45
 * @desrcption: 获取用户和部门容器
 */
@Getter
@Setter
@ToString
public class UserAndDepartmentGetDTO extends BaseDTO {
    private static final long serialVersionUID = -7336283691076718536L;

    private List<FieldAttrEntity> explainList;

    private Map<String, UserEntity> userMap;

    private Map<String, DepartmentEntity> departmentMap;

    public UserAndDepartmentGetDTO(){
        userMap = new HashMap<>(PaasConstant.DEFAULT_INITIAL_CAPACITY);
        departmentMap = new HashMap<>(PaasConstant.DEFAULT_INITIAL_CAPACITY);
    }
}
